package com.dingwen.treasure.business.model.entity;

import com.cdn.treasure.annotation.SensitiveField;
import com.cdn.treasure.enums.SensitiveEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 敏感实体
 *
 * @author dingwen
 * @date 2022/12/14
 */
@ApiModel(value = "sensitiveEntity",description = "SensitiveEntity")
@Data
@Builder
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SensitiveEntity {

    /**
     * 密码： 模拟ASE加解密
     */
    @ApiModelProperty(value = "密码")
    @SensitiveField(type = SensitiveEnum.ENCODE)
    private String password;


    /**
     * 中文名
     */
    @ApiModelProperty(value = "中文名")
    @SensitiveField(type = SensitiveEnum.CHINESE_NAME)
    private String chineseName;


    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证")
    @SensitiveField(type = SensitiveEnum.ID_CARD)
    private String idcard;

    /**
     * 座机号
     */
    @ApiModelProperty(value = "座机号")
    @SensitiveField(type = SensitiveEnum.FIXED_PHONE)
    private String fixedPhone;


    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @SensitiveField(type = SensitiveEnum.MOBILE_PHONE)
    private String mobilePhone;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    @SensitiveField(type = SensitiveEnum.ADDRESS)
    private String address;


    /**
     * 电子邮件
     */
    @ApiModelProperty(value = "电子邮件")
    @SensitiveField(type = SensitiveEnum.EMAIL)
    private String email;

    /**
     * 银行卡
     */
    @ApiModelProperty(value = "银行卡")
    @SensitiveField(type = SensitiveEnum.BANK_CARD)
    private String bankCard;


    /**
     * 公司开户银行联号
     */
    @ApiModelProperty(value = "公司开户银行联号")
    @SensitiveField(type = SensitiveEnum.CNAPS_CODE)
    private String cnapsCode;
}
